package com.xyoto.takeawayBusiness.mapper;

import com.xyoto.takeawayBusiness.dto.AddTakeawayDTO;
import com.xyoto.takeawayBusiness.dto.UpdateTakeawayDTO;
import com.xyoto.takeawayBusiness.entity.TakeawayManager;
import com.xyoto.takeawayBusiness.vo.GetTakeawayVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/5/4  15:52
 */
@Mapper
public interface TakeawayManagerMapper {
    /**
     * 获取外卖管理信息
     * @param shopId
     * @return
     */
    GetTakeawayVO getTakeaway(Integer shopId);

    /**
     * 修改外卖管理
     * @param takeawayDTO
     * @return
     */
    Integer updateTakeaway(UpdateTakeawayDTO takeawayDTO);



    /**
     * 新增外卖管理
     * @param takeawayManager
     * @return
     */
    Integer addTakeaway(TakeawayManager takeawayManager);

    /**
     * 查找外卖管理数量
     * @param thisUserShopId
     * @return
     */
    Integer findTakeawayManagerCount(Integer thisUserShopId);
}
